﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace FormProcessoPadrao
{
    public partial class FormExecutaProcesso : Form
    {
        public FormExecutaProcesso()
        {
            InitializeComponent();
        }

        private void tmrProgresso_Tick(object sender, EventArgs e)
        {
            prgrsbrProcesso.PerformStep();
            if (prgrsbrProcesso.Value == 100)
            {
                this.Dispose();
            }
        }

        private void FormExecutaProcesso_Load(object sender, EventArgs e)
        {
            prgrsbrProcesso.Value = 0;
        }

        private void FormExecutaProcesso_FormClosing(object sender, FormClosingEventArgs e)
        {
            
        }
    }
}
